package com.imooc.controller;

import com.imooc.properties.Girlproperies;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Created by Macoco on 2017-05-06.
 */
@RequestMapping(value = "/abc")
@RestController
public class HelloController {

    @Autowired
    private Girlproperies girlproperies;

    @GetMapping(value = "/hello")
//    @RequestMapping(value = {"/hello","/hi"},method = RequestMethod.GET)
    public String say(@RequestParam(value = "id" ,defaultValue = "0",required =true) Integer MyID) {
        return  "ID:"+ MyID;
        //        return girlproperies.getCupSize() ;
    }
}
